package com.tebiecloud.order.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 订单退款信息
 * @author tebie
 * @date 2019-10-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderRefund extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单退款id
     */
    @TableId(value = "order_refund_id", type = IdType.ID_WORKER)
    private Long orderRefundId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 退款类型：1用户发起退款，2商户发起退款
     */
    private Integer type;

    /**
     * 收货状态，0未收货1已收货
     */
    private Integer inHand;

    /**
     * 退货退款原因
     */
    private String reason;

    /**
     * 状态，0没有退成功1退款审核中2等待退货3退货中4已退货退款
     */
    private Integer status;

    /**
     * 退货退款说明
     */
    private String explainn;

    /**
     * 收货人名称
     */
    private String receiver;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 收货人联系号码
     */
    private String phone;

    /**
     * 物流公司
     */
    private String logistics;

    /**
     * 快递单号
     */
    private String courierNumber;

    /**
     * 寄出人联系号码
     */
    private String senderPhone;

    /**
     * 申请退货退款失败原因
     */
    private String refuseReason;

}
